package top.kpromise.user.service;

import top.kpromise.user.model.response.UserTicketModel;

import java.util.Map;

public interface UserTicketService {

    int insert(UserTicketModel userTicketModel);

    int update(UserTicketModel userTicketModel);

    UserTicketModel findByTicket(String ticket);

    UserTicketModel findByUserIdAndType(String userId, int type);

    int deleteByTicket(String ticket);

    void saveTicket(UserTicketModel userTicketModel);

    Map<String, Object> checkTicket(String ticket, String userId, int type);
}
